<?
require_once("conf/config.php");
require_once("conf/database.php");
?>
<?
$arrayCentres=Array("Annanagar","Adyar","Avadi","Nungambakkam","Ponnamallee","Purasaiwalkkam","Rattan Bazaar","Royapettah","Velacherry","Washermanpet","Saidapet");

$cityList="ARAKONAM|ARAKONAM
ARIYALUR|ARIYALUR
ARNI|ARNI
ARUPPUKOTTAI|ARUPPUKOTTAI
BIKKATTY|BIKKATTY
BODINAYAKKANUR|BODINAYAKKANUR
CHANGANACHERRY|CHANGANACHERRY
CHENGALPATTU|CHENGALPATTU
CHETTUPATTU|CHETTUPATTU
CHEYYAR|CHEYYAR
CHIDAMBARAM|CHIDAMBARAM
COIMBATORE|COIMBATORE
COONOOR|COONOOR
CUDDALORE|CUDDALORE
CUMBUM|CUMBUM
DHARMAPURI|DHARMAPURI
DINDIGUL|DINDIGUL
ERODE|ERODE
HOSUR|HOSUR
KANCHEEPURAM|KANCHEEPURAM
KARAIKAL|KARAIKAL
KARAIKUDI|KARAIKUDI
KARUR|KARUR
KEEL PODAVUR|KEEL PODAVUR
KODAIKANAL|KODAIKANAL
KOVILPATTI|KOVILPATTI
KRISHNAGIRI|KRISHNAGIRI
KUMBAKONAM|KUMBAKONAM
MADURAI|MADURAI
MANAVALANAGAR|MANAVALANAGAR
MANMANGALAM|MANMANGALAM
MARAIMALAI NAGAR|MARAIMALAI NAGAR
MAYILADUTHURAI|MAYILADUTHURAI
METTUR DAM|METTUR DAM
NAGAPATTINAM|NAGAPATTINAM
NAGERCOIL|NAGERCOIL
NAGERKOIL|NAGERKOIL
NAMAKKAL|NAMAKKAL
NEYVELI|NEYVELI
OOTACAMUND|OOTACAMUND
PALANI|PALANI
PARAMAKUDI|PARAMAKUDI
POLUR|POLUR
PUDUKOTTAI|PUDUKOTTAI
RAJAPALAYAM|RAJAPALAYAM
RAMESHWARAM|RAMESHWARAM
SALEM|SALEM
SIVAGANGA|SIVAGANGA
SIVAKASI|SIVAKASI
SRIPERUMPUDUR|SRIPERUMPUDUR
THANJAVUR|THANJAVUR
THENI|THENI
THIRUVANNAMALAI|THIRUVANNAMALAI
TINDIVANAM|TINDIVANAM
TIRUCHIRAPPALLI|TIRUCHIRAPPALLI
TIRUMANGALAM|TIRUMANGALAM
TIRUNELVELI|TIRUNELVELI
TIRUPUR|TIRUPUR
TIRUVARUR|TIRUVARUR
TUTICORIN|TUTICORIN
UDUMALPET|UDUMALPET
VANAVASI|VANAVASI
VELLORE|VELLORE
VELUR|VELUR
VILLUPURAM|VILLUPURAM
VIRUDHUNAGAR|VIRUDHUNAGAR
VRIDDHACHALAM|VRIDDHACHALAM";

$cities=explode('
',$cityList);

foreach ($cities as $key => $value) {

	$actualCity=explode('|',$value);
	$value=$actualCity[0];

	$tblData["centre_code"]='';
	$tblData["centre_name"]='';
	$tblData["centre_location"]=$value;
	$tblData["address_1"]="Main Centre";
	$tblData["address_2"]='';
	$tblData["city"]=$value;
	$tblData["state"]='TN';
	$tblData["centre_type"]='1';
	$tblData["centre_parent_id"]='0';
	$tblData["centre_group_id"]='1';
	$tblData["centre_status"]='1';
	$tblData["rec_status"]='1';
	//insert_qry("bkc_centre_list",$tblData);


}

$arrayCentres=Array("Kodungaiyur","Mugappair","Thambaram West","Maramalai Nagar","Ramapuram","Kelambakkam","Valasaravakkam","Poonamalle","Chengalpet","Porur");
foreach ($arrayCentres as $key => $value) {
	
	$tblData["centre_code"]='';
	$tblData["centre_name"]='';
	$tblData["centre_location"]=$value;
	$tblData["address_1"]=$value;
	$tblData["address_2"]='';
	$tblData["city"]='Chennai';
	$tblData["state"]='TN';
	$tblData["centre_type"]='1';
	$tblData["centre_parent_id"]='0';
	$tblData["centre_group_id"]='1';
	$tblData["centre_status"]='1';
	$tblData["rec_status"]='1';
	//insert_qry("bkc_centre_list",$tblData);
}


?>